import timenumTOstr from "../util/timenumTOstr"

export default function () {
    const index = {
        title: '序号',
        key: 'index',
        render: (data: any, index: number) => {
            return index + 1
        }
    }
    const createdTime = {
        title: '创建时间',
        key: 'createdTime',
        width:160,
        render: (data: any, index: number) => {
            return timenumTOstr(data["createdTime"])
        }
    }
    const changeTime = {
        title: '修改时间',
        key: 'changeTime',
        width:160,
        render: (data: any, index: number) => {
            return timenumTOstr(data["changeTime"])
        }
    }
    const name = {
        title: '名称',
        key: 'name',
    }
    const desc = {
        title: '描述',
        key: 'desc',
    }

    return { index, createdTime, changeTime, desc, name, }
}